package com.ruoyi.web.controller.tool;

import java.io.FileOutputStream;
import java.io.IOException;
import java.util.*;

import com.deepoove.poi.XWPFTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import io.swagger.annotations.Api;
@Api("用户信息管理")
@RestController
@RequestMapping("/test/user")
public class TestController extends BaseController
{
    public static void main(String[] args) throws IOException {
//        XWPFTemplate template = XWPFTemplate.compile("D:/template.docx").render(
//                new HashMap<String, Object>(){{
//                    put("title", "Hi, poi-tl Word模板引擎");
//                }});
//        template.writeAndClose(new FileOutputStream("D:/output.docx"));

        String tmp = "/profile/upload/2023/09/26/Desktop-01_20230926172628A001.jpg";
        System.out.println(tmp.substring(15));
    }
}
